package com.wangzh.network.tcp;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class Client {

    public static void main(String[] args) throws IOException {
//        发送
        Socket sk = new Socket("127.0.0.1", 10000);

        OutputStream os = sk.getOutputStream();
        os.write("你好你好 ！！".getBytes());

        os.close();

        sk.close();
    }
}
